<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * Controller for managing configs.
 * @package backend-configs/conrollers
 * @category Controller
 * 
 * @author Mark Angelo Angulo
 * @copyright (c) 2015
 */
class Cms_config extends Backend_Controller {

    /**
     *  Constructor method.
     */
    function __construct()
    {
        parent::__construct();
        
        $this->load->model('cms_config_model');
        
        $this->load->helper('cms');
        $this->load->helper('cms_config');
        
        $this->load->library('form_validation');
        $this->form_validation->set_error_delimiters('<div class="clear-fix"></div><small>', '</small>');
        
        init_config();
    }

    /**
     * Default method called when nothing is specified.
     * Displays dashboard.
     * @access public
     */
    public function index()
    {
        
        $config = $this->cms_config_model->all()->get();
        
        echo '<pre>';
        print_r($config); 
        echo '</pre>';
        exit();
    }
}

/* End of file cms_config.php */
/* Location: ./application/configs/backend-configs/controllers/cms_config.php */